﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace WebFirst.Entities
{
    /// <summary>
    /// 2型糖尿病患者随访记录表
    ///</summary>
    [SugarTable("follow_diabetesfollowup")]
    public class FollowDiabetesfollowup
    {
        /// <summary>
        /// 随访记录ID 
        ///</summary>
         [SugarColumn(ColumnName="ID" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public int Id { get; set; }
        /// <summary>
        /// 患者ID 
        ///</summary>
         [SugarColumn(ColumnName="PatientID"    )]
         public string PatientID { get; set; }
         public string? DataMarker { get; set; }
        /// <summary>
        /// 随访医生ID 
        ///</summary>
         [SugarColumn(ColumnName="DoctorID"    )]
         public int? DoctorID { get; set; }
        /// <summary>
        /// 病历号/档案号 
        ///</summary>
         [SugarColumn(ColumnName="MedicalRecordNumber"    )]
         public string MedicalRecordNumber { get; set; }
        /// <summary>
        /// 随访日期和时间 
        ///</summary>
         [SugarColumn(ColumnName= "FollowUpDate")]
         public DateTime FollowUpDate { get; set; }
        /// <summary>
        /// 随访方式（1.门诊 2.家庭 3.电话） 
        ///</summary>
         [SugarColumn(ColumnName="FollowUpMethod"    )]
         public int? FollowUpMethod { get; set; }
        /// <summary>
        /// 症状（关联字典表） 
        ///</summary>
         [SugarColumn(ColumnName="SymptomsID"    )]
         public string SymptomsID { get; set; }
        /// <summary>
        /// 血压 
        ///</summary>
         [SugarColumn(ColumnName="BloodPressure"    )]
         public string BloodPressure { get; set; }
        /// <summary>
        /// 收缩压
        ///</summary>
        [SugarColumn(ColumnName = "SystolicPressures")]
        public string SystolicPressures { get; set; }
        /// <summary>
        /// 舒张压
        ///</summary>
        [SugarColumn(ColumnName = "DiastolicPressure")]
        public string DiastolicPressure { get; set; }
        /// <summary>
        /// 体重（kg） 
        ///</summary>
        [SugarColumn(ColumnName="Weight"    )]
         public decimal? Weight { get; set; }
        /// <summary>
        /// 身高（m） 
        ///</summary>
         [SugarColumn(ColumnName="Height"    )]
         public decimal? Height { get; set; }
        /// <summary>
        /// 体质数（体重/身高） 
        ///</summary>
         [SugarColumn(ColumnName="BodyMassIndex"    )]
         public decimal? BodyMassIndex { get; set; }
        /// <summary>
        /// 日吸烟量（支） 
        ///</summary>
         [SugarColumn(ColumnName="SmokingAmount"    )]
         public int? SmokingAmount { get; set; }
        /// <summary>
        /// 主食摄入量（克/天） 
        ///</summary>
         [SugarColumn(ColumnName="MainFoodIntake"    )]
         public int? MainFoodIntake { get; set; }
        /// <summary>
        /// 足背动脉搏动（1.未触及 2.触及） 
        ///</summary>
         [SugarColumn(ColumnName="FootPulseStatus"    )]
         public int? FootPulseStatus { get; set; }
        /// <summary>
        /// 药物依从性（1.规律 2.间断 3.不服药） 
        ///</summary>
         [SugarColumn(ColumnName="MedicationAdherence"    )]
         public int? MedicationAdherence { get; set; }
        /// <summary>
        /// 此次随访分类（1.控制满意 2.控制不满意 3.不良反应 4.并发症） 
        ///</summary>
         [SugarColumn(ColumnName="FollowUpCategory"    )]
         public int? FollowUpCategory { get; set; }
        /// <summary>
        /// 备注/附加信息 
        ///</summary>
         [SugarColumn(ColumnName="AdditionalNotes"    )]
         public string AdditionalNotes { get; set; }
        /// <summary>
        /// 药物不良反应（1.有 2.无） 
        ///</summary>
         [SugarColumn(ColumnName="MedicationAdverseReaction"    )]
         public int? MedicationAdverseReaction { get; set; }
        /// <summary>
        /// 腰围 
        ///</summary>
         [SugarColumn(ColumnName="Waistline"    )]
         public int? Waistline { get; set; }
        /// <summary>
        /// 其他体征
        /// </summary>
        public string? BodyStatusOther { get; set; }
        /// <summary>
        /// 白酒日饮量 
        ///</summary>
        [SugarColumn(ColumnName="DrinkingLiquor"    )]
         public int? DrinkingLiquor { get; set; }
        /// <summary>
        /// 啤酒日饮量 
        ///</summary>
         [SugarColumn(ColumnName="DrinkingBeer"    )]
         public int? DrinkingBeer { get; set; }
        /// <summary>
        /// 葡萄酒日饮量 
        ///</summary>
         [SugarColumn(ColumnName="DrinkingWine"    )]
         public int? DrinkingWine { get; set; }
        /// <summary>
        /// 其他酒日饮量 
        ///</summary>
         [SugarColumn(ColumnName="DrinkingOther"    )]
         public int? DrinkingOther { get; set; }
        /// <summary>
        /// 运动强度（1.中等强度  2.高强度） 
        ///</summary>
         [SugarColumn(ColumnName="ExerciseStrongLever"    )]
         public int? ExerciseStrongLever { get; set; }
        /// <summary>
        /// 运动次数每周 
        ///</summary>
         [SugarColumn(ColumnName="ExerciseTimesWeek"    )]
         public int? ExerciseTimesWeek { get; set; }
        /// <summary>
        /// 每次运动时间 
        ///</summary>
         [SugarColumn(ColumnName="ExerciseMinutesTimes"    )]
         public int? ExerciseMinutesTimes { get; set; }
        /// <summary>
        /// 心理状态（1.良好 2.一般 3.差） 
        ///</summary>
         [SugarColumn(ColumnName="MentalAdjustment"    )]
         public int? MentalAdjustment { get; set; }
        /// <summary>
        /// 遵医行为（1.良好 2.一般 3.差） 
        ///</summary>
         [SugarColumn(ColumnName="ComplianceBehavior"    )]
         public int? ComplianceBehavior { get; set; }
        /// <summary>
        /// 空腹静脉血糖值 
        ///</summary>
         [SugarColumn(ColumnName="FastingBloodSugar"    )]
         public decimal FastingBloodSugar { get; set; }
        /// <summary>
        /// 空腹胰岛素
        ///</summary>
        [SugarColumn(ColumnName="FastingInsulin"    )]
         public decimal FastingInsulin { get; set; }
        /// <summary>
        /// 餐后2小时胰岛素
        ///</summary>
        [SugarColumn(ColumnName = "Insulin")]
        public decimal Insulin { get; set; }
        /// <summary>
        /// C肽
        ///</summary>
        [SugarColumn(ColumnName = "Cpeptide")]
        public decimal Cpeptide { get; set; }
        /// <summary>
        /// 餐后2小时血糖
        ///</summary>
        [SugarColumn(ColumnName = "AfterBloodSugar")]
        public decimal AfterBloodSugar { get; set; }
        /// <summary>
        /// 糖化血红蛋白 
        ///</summary>
        [SugarColumn(ColumnName="GlycosylatedHemoglobin"    )]
         public decimal GlycosylatedHemoglobin { get; set; }
        /// <summary>
        /// 有不良反应添加 
        ///</summary>
        [SugarColumn(ColumnName="MedicationAdverseReactions"    )]
         public string MedicationAdverseReactions { get; set; }
        /// <summary>
        /// 低血糖反应（1.无 2.偶尔 3.频繁） 
        ///</summary>
         [SugarColumn(ColumnName="HypoglycemiaReaction"    )]
         public int? HypoglycemiaReaction { get; set; }
        /// <summary>
        /// 血脂 
        ///</summary>
         [SugarColumn(ColumnName="BloodLipid"    )]
         public decimal? BloodLipid { get; set; }
        /// <summary>
        /// 检查日期 
        ///</summary>
         [SugarColumn(ColumnName="InspectDate"    )]
         public DateTime? InspectDate { get; set; }
        /// <summary>
        /// 肝肾功能 
        ///</summary>
         [SugarColumn(ColumnName="LiverKidney"    )]
         public string LiverKidney { get; set; }
        /// <summary>
        /// 并发症检查 
        ///</summary>
         [SugarColumn(ColumnName="Complication"    )]
         public string Complication { get; set; }
        /// <summary>
        /// 是否调整治疗方案（1.是  2.否） 
        ///</summary>
         [SugarColumn(ColumnName="TreatmentPlan"    )]
         public int? TreatmentPlan { get; set; }
        /// <summary>
        /// 胰岛素种类 
        ///</summary>
         [SugarColumn(ColumnName="InsulinType"    )]
         public string InsulinType { get; set; }
        /// <summary>
        /// 用法和用量 
        ///</summary>
         [SugarColumn(ColumnName="InsulinAdministration"    )]
         public string InsulinAdministration { get; set; }
        /// <summary>
        /// 转诊原因 
        ///</summary>
         [SugarColumn(ColumnName="ReferralReason"    )]
         public string ReferralReason { get; set; }
        /// <summary>
        /// 转诊机构科别 
        ///</summary>
         [SugarColumn(ColumnName="ReferralDept"    )]
         public string ReferralDept { get; set; }
        /// <summary>
        /// 下次随访日期
        /// </summary>
        public DateTime? NextFollowDate { get; set; }
        /// <summary>
        /// 病种区分
        /// </summary>
        public string? Medication { get; set; }
        /// <summary>
        /// 计划ID
        ///</summary>
        [SugarColumn(ColumnName = "PlanId")]
        public int? PlanId { get; set; }

    }


    public class FollowDiabetesfollowupGW
    {
        /// <summary>
        /// 随访记录ID 
        ///</summary>
        [SugarColumn(ColumnName = "ID", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 患者ID 
        ///</summary>
        [SugarColumn(ColumnName = "PatientID")]
        public string PatientID { get; set; }
        public string IdCard { get; set; }

        public string? DataMarker { get; set; }
        /// <summary>
        /// 病历号/档案号 
        ///</summary>
        [SugarColumn(ColumnName = "MedicalRecordNumber")]
        public string MedicalRecordNumber { get; set; }
        /// <summary>
        /// 随访日期和时间 
        ///</summary>
        [SugarColumn(ColumnName = "FollowUpDate")]
        public DateTime FollowUpDate { get; set; }
        /// <summary>
        /// 随访方式（1.门诊 2.家庭 3.电话） 
        ///</summary>
        [SugarColumn(ColumnName = "FollowUpMethod")]
        public int? FollowUpMethod { get; set; }
        /// <summary>
        /// 症状（关联字典表） 
        ///</summary>
        [SugarColumn(ColumnName = "SymptomsID")]
        public string SymptomsID { get; set; }
        /// <summary>
        /// 血压 
        ///</summary>
        [SugarColumn(ColumnName = "BloodPressure")]
        public string BloodPressure { get; set; }
        /// <summary>
        /// 体重（kg） 
        ///</summary>
        [SugarColumn(ColumnName = "Weight")]
        public decimal? Weight { get; set; }
        /// <summary>
        /// 身高（m） 
        ///</summary>
        [SugarColumn(ColumnName = "Height")]
        public decimal? Height { get; set; }
        /// <summary>
        /// 体质数（体重/身高） 
        ///</summary>
        [SugarColumn(ColumnName = "BodyMassIndex")]
        public decimal? BodyMassIndex { get; set; }
        /// <summary>
        /// 日吸烟量（支） 
        ///</summary>
        [SugarColumn(ColumnName = "SmokingAmount")]
        public int? SmokingAmount { get; set; }
        /// <summary>
        /// 主食摄入量（克/天） 
        ///</summary>
        [SugarColumn(ColumnName = "MainFoodIntake")]
        public int? MainFoodIntake { get; set; }
        /// <summary>
        /// 足背动脉搏动（1.未触及 2.触及） 
        ///</summary>
        [SugarColumn(ColumnName = "FootPulseStatus")]
        public int? FootPulseStatus { get; set; }
        /// <summary>
        /// 药物依从性（1.规律 2.间断 3.不服药） 
        ///</summary>
        [SugarColumn(ColumnName = "MedicationAdherence")]
        public int? MedicationAdherence { get; set; }
        /// <summary>
        /// 此次随访分类（1.控制满意 2.控制不满意 3.不良反应 4.并发症） 
        ///</summary>
        [SugarColumn(ColumnName = "FollowUpCategory")]
        public int? FollowUpCategory { get; set; }
        /// <summary>
        /// 备注/附加信息 
        ///</summary>
        [SugarColumn(ColumnName = "AdditionalNotes")]
        public string AdditionalNotes { get; set; }
        /// <summary>
        /// 药物不良反应（1.有 2.无） 
        ///</summary>
        [SugarColumn(ColumnName = "MedicationAdverseReaction")]
        public int? MedicationAdverseReaction { get; set; }
        /// <summary>
        /// 腰围 
        ///</summary>
        [SugarColumn(ColumnName = "Waistline")]
        public string? Waistline { get; set; }
        /// <summary>
        /// 其他体征
        /// </summary>
        public string? BodyStatusOther { get; set; }
        /// <summary>
        /// 白酒日饮量 
        ///</summary>
        [SugarColumn(ColumnName = "DrinkingLiquor")]
        public int? DrinkingLiquor { get; set; }
        /// <summary>
        /// 啤酒日饮量 
        ///</summary>
        [SugarColumn(ColumnName = "DrinkingBeer")]
        public string? DrinkingBeer { get; set; }
        /// <summary>
        /// 葡萄酒日饮量 
        ///</summary>
        [SugarColumn(ColumnName = "DrinkingWine")]
        public string? DrinkingWine { get; set; }
        /// <summary>
        /// 其他酒日饮量 
        ///</summary>
        [SugarColumn(ColumnName = "DrinkingOther")]
        public string? DrinkingOther { get; set; }
        /// <summary>
        /// 运动强度（1.中等强度  2.高强度） 
        ///</summary>
        [SugarColumn(ColumnName = "ExerciseStrongLever")]
        public string? ExerciseStrongLever { get; set; }
        /// <summary>
        /// 运动次数每周 
        ///</summary>
        [SugarColumn(ColumnName = "ExerciseTimesWeek")]
        public string? ExerciseTimesWeek { get; set; }
        /// <summary>
        /// 每次运动时间 
        ///</summary>
        [SugarColumn(ColumnName = "ExerciseMinutesTimes")]
        public string? ExerciseMinutesTimes { get; set; }
        /// <summary>
        /// 心理状态（1.良好 2.一般 3.差） 
        ///</summary>
        [SugarColumn(ColumnName = "MentalAdjustment")]
        public string? MentalAdjustment { get; set; }
        /// <summary>
        /// 遵医行为（1.良好 2.一般 3.差） 
        ///</summary>
        [SugarColumn(ColumnName = "ComplianceBehavior")]
        public string? ComplianceBehavior { get; set; }
        /// <summary>
        /// 空腹静脉血糖值 
        ///</summary>
        [SugarColumn(ColumnName = "FastingBloodSugar")]
        public decimal FastingBloodSugar { get; set; }
        /// <summary>
        /// 空腹胰岛素
        ///</summary>
        [SugarColumn(ColumnName = "FastingInsulin")]
        public string? FastingInsulin { get; set; }
        /// <summary>
        /// 餐后2小时胰岛素
        ///</summary>
        [SugarColumn(ColumnName = "Insulin")]
        public string? Insulin { get; set; }
        /// <summary>
        /// C肽
        ///</summary>
        [SugarColumn(ColumnName = "Cpeptide")]
        public string? Cpeptide { get; set; }
        /// <summary>
        /// 餐后2小时血糖
        ///</summary>
        [SugarColumn(ColumnName = "AfterBloodSugar")]
        public string? AfterBloodSugar { get; set; }
        /// <summary>
        /// 糖化血红蛋白 
        ///</summary>
        [SugarColumn(ColumnName = "GlycosylatedHemoglobin")]
        public string? GlycosylatedHemoglobin { get; set; }
        /// <summary>
        /// 有不良反应添加 
        ///</summary>
        [SugarColumn(ColumnName = "MedicationAdverseReactions")]
        public string? MedicationAdverseReactions { get; set; }
        /// <summary>
        /// 低血糖反应（1.无 2.偶尔 3.频繁） 
        ///</summary>
        [SugarColumn(ColumnName = "HypoglycemiaReaction")]
        public string? HypoglycemiaReaction { get; set; }
        /// <summary>
        /// 血脂 
        ///</summary>
        [SugarColumn(ColumnName = "BloodLipid")]
        public string? BloodLipid { get; set; }
        /// <summary>
        /// 检查日期 
        ///</summary>
        [SugarColumn(ColumnName = "InspectDate")]
        public DateTime? InspectDate { get; set; }
        /// <summary>
        /// 肝肾功能 
        ///</summary>
        [SugarColumn(ColumnName = "LiverKidney")]
        public string LiverKidney { get; set; }
        /// <summary>
        /// 并发症检查 
        ///</summary>
        [SugarColumn(ColumnName = "Complication")]
        public string Complication { get; set; }
        /// <summary>
        /// 是否调整治疗方案（1.是  2.否） 
        ///</summary>
        [SugarColumn(ColumnName = "TreatmentPlan")]
        public string? TreatmentPlan { get; set; }
        /// <summary>
        /// 胰岛素种类 
        ///</summary>
        [SugarColumn(ColumnName = "InsulinType")]
        public string InsulinType { get; set; }
        /// <summary>
        /// 用法和用量 
        ///</summary>
        [SugarColumn(ColumnName = "InsulinAdministration")]
        public string InsulinAdministration { get; set; }
        /// <summary>
        /// 转诊原因 
        ///</summary>
        [SugarColumn(ColumnName = "ReferralReason")]
        public string ReferralReason { get; set; }
        /// <summary>
        /// 转诊机构科别 
        ///</summary>
        [SugarColumn(ColumnName = "ReferralDept")]
        public string ReferralDept { get; set; }

    }
}
